import org.junit.Test;

import java.util.Calendar;
import java.util.TimeZone;

/**
 * Created by kevinchen on 2016/12/16.
 */
public class UtilsDemo {

    @Test
    public void test1(){
        Calendar calendar = Calendar.getInstance();
        System.setProperty("user.timezone","GMT+8");
        System.out.println("目前时间：" + calendar.getTime());
        System.out.println("Calendar时区：：" + calendar.getTimeZone().getID());
        System.out.println("user.timezone：" + System.getProperty("user.timezone"));
        System.out.println("user.country：" + System.getProperty("user.country"));
        System.out.println("默认时区：" + TimeZone.getDefault().getID());
    }

    public static int shardingCount = 4;

}
